package org.dromara.app.domain.bo;

import org.dromara.app.domain.SkVipPrice;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 开通会员价格业务对象 sk_vip_price
 *
 * @author Evacuation
 * @date 2024-07-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SkVipPrice.class, reverseConvertGenerate = false)
public class SkVipPriceBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 类型
     */
    @NotNull(message = "类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long type;

    /**
     * 会员价格
     */
    @NotNull(message = "会员价格不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long price;

    /**
     * 原价
     */
    @NotNull(message = "原价不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long oldPrice;

    /**
     * 说明
     */
    @NotBlank(message = "说明不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 图标
     */
    private String icon;


}
